FROM openjdk:11-jdk

MAINTAINER Lusifer

ENV TZ=Asia/Shanghai

RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN mkdir -p /screw/screw-codegen

WORKDIR /screw/screw-codegen

ADD ./screw-codegen.jar ./

ENTRYPOINT ["java", "-Xms128m", "-Xmx256m", "-Djava.security.egd=file:/dev/./urandom", "-jar", "screw-codegen.jar"]

EXPOSE 4002